package com.lyt.mall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lyt.common.utils.PageUtils;
import com.lyt.mall.member.entity.MemberEntity;
import com.lyt.mall.member.exception.PhoneExistException;
import com.lyt.mall.member.exception.UsernameExistException;
import com.lyt.mall.member.vo.MemberLoginVO;
import com.lyt.mall.member.vo.MemberRegisterVO;
import com.lyt.mall.member.vo.SocialUserVO;

import java.util.Map;

/**
 * 会员
 *
 * @author lyt
 * @email liu18004262007@163.com
 * @date 2022-11-02 16:47:06
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVO vo) throws PhoneExistException, UsernameExistException;

    MemberEntity login(MemberLoginVO vo);

    MemberEntity login(SocialUserVO vo);
}

